package oo2;

public class Student {
	String name;
	int age;
	String no;
	int score;//

	public Student() {

	}

	public Student(String n, int a) {
		name = n;
		age = a;
	}

	public Student(String name, int age, String no) {
		this.name = name;
		this.age = age;
		this.no = no;

		this.show();// 实例方法
	}

	public Student(String n, int a, String xuehao, int s) {
		name = n;
		age = a;
		no = xuehao;
		score = s;
	}

	public void show() {
		System.out.println("名字叫" + name + "，今年" + age + ",学号 " + no + ",java成绩是：" + score);
	}
}
